'use strict';

const Controller = require('egg').Controller;
module.exports = app => {
  return class FrontArticleController extends Controller {
    /**
     * @description 首页
     * query 的type是config.newlistTemplate对应的部分
     * @author xiezuobing[948466]<435321508@qq.com>
     * @memberof HomeController
     */
    async index() {
      const ctx = this.ctx;
      const query = ctx.query;

      ctx.locals = {
        test: 'test'
      };
      // console.log(this.app.react.render);
      ctx.body = 1;
      await ctx.render('react/index.js');
    }
  };
};
